package com.lxj.student_security.mapper;

import com.lxj.student_security.entity.Permission;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface PermissionMapper {
    List<Permission> searchAll(Permission permission);

    int delete(Integer[] id);

    int add(Permission permission);

    int edit(Permission permission);

    Permission findById(Integer id);

    List<Permission> findAll();

    Integer getId(String username);
}
